import Vue from 'vue';
import Router from 'vue-router';
import menus from '@/router/modules/menus';

Vue.use(Router);

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/home',
      name: 'Home',
      component: () => import("@/views/home/Home"),
      children: [...menus]
    },
    {
      path: '/',
      name: 'Login',
      component: () => import("@/views/login/Login"),
    }
  ],

});




